package com.cubeofnine.sugar;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.animation.AnimationUtils;
import android.widget.TextView;

import com.cubeofnine.sugar.inf.ModuleHandlerInterface;

public class ModuleActivity extends ActivityImpt implements
		ModuleHandlerInterface {

	public String getClassName() {
		return ModuleActivity.class.getName();
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		Log.i(getClassName(), "onCreate() : Start");

		super.onCreate(savedInstanceState);
		setContentView(R.layout.module);

		TextView headerTitle = (TextView) findViewById(R.id.header_title);
		headerTitle.setText(R.string.app_name);

		Log.i(getClassName(), "onCreate() : End");
	}

	public void onClickSalesModule(View view) {
		view.startAnimation(AnimationUtils.loadAnimation(this,
				R.anim.image_click));
		// TODO Auto-generated method stub
		gotoActivity(SalesActivity.class);

	}

	public void onClickMarketingModule(View view) {
		view.startAnimation(AnimationUtils.loadAnimation(this,
				R.anim.image_click));
		// TODO Auto-generated method stub
		gotoActivity(MarktingActivity.class);

	}

	public void onClickSupportModule(View view) {
		view.startAnimation(AnimationUtils.loadAnimation(this,
				R.anim.image_click));
		// TODO Auto-generated method stub
		gotoActivity(SupportActivity.class);

	}
}
